﻿<Window x:Class="GerritDrost.VirtualBoxManager.WPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Headless VirtualBox Manager" Height="248.048" Width="525" Activated="Window_Activated" Deactivated="Window_Deactivated" MouseEnter="Window_MouseEnter" ShowInTaskbar="False" Closing="Window_Closing">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="4*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        
        <ListView Name="machineListView" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="0" Grid.Column="0" SelectionChanged="machineListView_SelectionChanged" SelectionMode="Single">
            <ListView.View>
                <GridView AllowsColumnReorder="False">
                    <GridViewColumn Header="Name" Width="320" DisplayMemberBinding="{Binding Path=Name}" />
                    <GridViewColumn Header="Running" Width="64" DisplayMemberBinding="{Binding Path=Running}"  />
                </GridView>
            </ListView.View>
        </ListView>

        <StackPanel Grid.Row="0" Grid.Column="1" Margin="4" HorizontalAlignment="Stretch" VerticalAlignment="Top">
            <Button Name="resumeButton" Margin="4" Click="resumeButton_Click" IsEnabled="False">Run/Resume</Button>
            <Button Name="suspendButton" Margin="4" Click="suspendButton_Click" IsEnabled="False">Suspend</Button>
        </StackPanel>
        <StackPanel Grid.Column="1" HorizontalAlignment="Left" Height="100" Margin="246,178,-243,0" VerticalAlignment="Top" Width="100"/>
    </Grid>
</Window>
